﻿#ifndef LOGISTICS_H
#define LOGISTICS_H

#include <QDialog>
#include <QPrinter>
#include <QPrintDialog>
#include <QTextDocument>
#include <QFont>
#include <QMessageBox>
#include "optioneditor.h"

namespace Ui {
class Logistics;
}

class Logistics : public QDialog
{
    Q_OBJECT

public:
    explicit Logistics(QWidget *parent = 0);
    ~Logistics();

private slots:
    void on_print_clicked();
    void reload(const OptionType &type);

    void on_express_currentTextChanged(const QString &text);

private:
    Ui::Logistics *ui;
    OptionHandler option;
    QString name,phone,addr,express,num,remarks;
    QTextDocument doc;
    QFont font;
};

#endif // LOGISTICS_H
